package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 运维-库存管理备件类型(OperationRepertoryType)表实体类
 *
 * @author yxy
 * @since 2024-10-28 15:39:22
 */
@Data
@ApiModel("运维-库存管理备件类型")
@TableName(value = "tb_operation_repertory_type")
public class OperationRepertoryType extends Model<OperationRepertoryType> implements Serializable {
    private static final long serialVersionUID = 725421896048052440L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("父id，0为一级目录")
    private Long pid;

    @ApiModelProperty("备件类型名称")
    private String name;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("子节点数据")
    @TableField(exist = false)
    private List<OperationRepertoryType> childrenList;
}
